<?

class graphDeviceIpFragmentedStatistics extends graphBase {
	protected $rrdFile = 'netstats_ip.rrd';
	protected function getOptions() {
		return array(
			'DEF:ipInDelivers='.$this->rrdPath.':InDelivers:AVERAGE',
			'DEF:ipReasmReqds='.$this->rrdPath.':ReasmReqds:AVERAGE',
			'DEF:ipReasmOKs='.$this->rrdPath.':ReasmOKs:AVERAGE',
			'DEF:ipReasmFails='.$this->rrdPath.':ReasmFails:AVERAGE',
			'DEF:ipFragOKs='.$this->rrdPath.':FragOKs:AVERAGE',
			'DEF:ipFragFails='.$this->rrdPath.':FragFails:AVERAGE',
			'DEF:ipFragCreates='.$this->rrdPath.':FragCreates:AVERAGE',
			'DEF:MipReasmReqds='.$this->rrdPath.':ReasmReqds:MAX',
			'DEF:MipReasmOKs='.$this->rrdPath.':ReasmOKs:MAX',
			'DEF:MipReasmFails='.$this->rrdPath.':ReasmFails:MAX',
			'DEF:MipFragOKs='.$this->rrdPath.':FragOKs:MAX',
			'DEF:MipFragFails='.$this->rrdPath.':FragFails:MAX',
			'DEF:MipFragCreates='.$this->rrdPath.':FragCreates:MAX',
			'CDEF:ReasmReqds=ipReasmReqds,ipInDelivers,/,100,*',
			'CDEF:ReasmOKs=ipReasmOKs,ipInDelivers,/,100,*',
			'CDEF:ReasmFails=ipReasmFails,ipInDelivers,/,100,*',
			'CDEF:FragOKs=ipFragOKs,ipInDelivers,/,100,*',
			'CDEF:FragFails=ipFragFails,ipInDelivers,/,100,*',
			'CDEF:FragCreates=ipFragCreates,ipInDelivers,/,100,*',
			'CDEF:MReasmReqds=MipReasmReqds,ipInDelivers,/,100,*',
			'CDEF:MReasmOKs=MipReasmOKs,ipInDelivers,/,100,*',
			'CDEF:MReasmFails=MipReasmFails,ipInDelivers,/,100,*',
			'CDEF:MFragOKs=MipFragOKs,ipInDelivers,/,100,*',
			'CDEF:MFragFails=MipFragFails,ipInDelivers,/,100,*',
			'CDEF:MFragCreates=MipFragCreates,ipInDelivers,/,100,*',
			'LINE1.25:ReasmReqds#000066:Reasm Reqd   ','GPRINT:ReasmReqds:LAST:%6.2lf%s','GPRINT:ReasmReqds:AVERAGE:%6.2lf%s','GPRINT:MReasmReqds:MAX:%6.2lf%s\n',
			'LINE1.25:FragCreates#00cc:Frag Create  ','GPRINT:FragCreates:LAST:%6.2lf%s','GPRINT:FragCreates:AVERAGE:%6.2lf%s','GPRINT:MFragCreates:MAX:%6.2lf%s\n',
			'LINE1.25:ReasmFails#660000:Reasm Fail   ','GPRINT:ReasmFails:LAST:%6.2lf%s','GPRINT:ReasmFails:AVERAGE:%6.2lf%s','GPRINT:MReasmFails:MAX:%6.2lf%s\n',
			'LINE1.25:ReasmOKs#006600:Reasm OK     ','GPRINT:ReasmOKs:LAST:%6.2lf%s','GPRINT:ReasmOKs:AVERAGE:%6.2lf%s','GPRINT:MReasmOKs:MAX:%6.2lf%s\n',
			'LINE1.25:FragFails#cc0000:Frag Fail    ','GPRINT:FragFails:LAST:%6.2lf%s','GPRINT:FragFails:AVERAGE:%6.2lf%s','GPRINT:MFragFails:MAX:%6.2lf%s\n',
			'LINE1.25:FragOKs#00cc00:Frag OK      ','GPRINT:FragOKs:LAST:%6.2lf%s','GPRINT:FragOKs:AVERAGE:%6.2lf%s','GPRINT:MFragOKs:MAX:%6.2lf%s\n',
			'COMMENT:% ipInDelivers   Current  Average  Maximum\n'
		);
	}

}